﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="ff_NodeView" name="ff_NodeView">
    <div class="easyui-layout" fit="true" style="padding: 1px;">
        <div data-options="region:'north',split:false," style="height: 34px; overflow: hidden;">
            <div id="dlg-toolbar">
                <table style="width: 100%; margin: 0px; padding: 0px;">
                    <tr>
                        <td style="padding-left: 2px">
                            <a id="btnSave" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true,">保存</a>
                            <a id="btnHelp" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true,">帮助</a>
                            <a id="btnClose" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,">关闭</a>
                            <a id="btnRefresh" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-refresh',plain:true,">刷新</a>
                        </td>
                        <td style="text-align: right; padding-right: 2px"><input class="easyui-searchbox" data-options="prompt:'关键字'" style="width: 150px" /></td>
                    </tr>
                </table>
            </div>
        </div>
        <div data-options="region:'center'," style="padding: 1px; overflow-x: hidden;">
            <div id="NewsInfoBase" class="easyui-panel" data-options="title:'节点管理·基本',iconCls:'icon-acc'," style="width: 100%; height: 100%;">
                <table class="nowraptd" style="width: 100%; height: auto; border-collapse: collapse; border: 1px;">
                    <tr>
                        <td style="width: 64px;">&nbsp;节点名称：</td>
                        <td>
                            <input id="Title" name="Title" class="easyui-textbox" style="width: 100%; max-width: 240px;" />
                        </td>
                        <td style="width: 120px;">&nbsp;输入节点名称</td>
                    </tr>
                    <tr>
                        <td style="width: 64px;">&nbsp;文 件 夹：</td>
                        <td>
                            <input id="Folder" name="Folder" class="easyui-textbox" style="width: 100%; max-width: 240px;" />
                        </td>
                        <td><input id="FlagTop" type="checkbox" value="1" /> 设为链接</td>
                    </tr>
                    <tr>
                        <td style="width: 64px;">&nbsp;链接地址：</td>
                        <td>
                            <input id="Url" name="Url" class="easyui-textbox" style="width: 100%; max-width: 240px;" />
                        </td>
                        <td>转向所指定的地址。</td>
                    </tr>
                    <tr>
                        <td style="width: 64px;">&nbsp;创建时间：</td>
                        <td>
                            <input id="DateTimeCreate" name="DateTimeCreate" class="easyui-datebox" data-options="formatter:window.xbase.FormatDateTime" style="width: 100%; max-width: 240px;" />
                        </td>
                        <td>只读</td>
                    </tr>
                        <tr style="height: 32px;">
                            <td style="width: 64px;">&nbsp;可选参数：</td>
                            <td>
                                <input id="Checkbox2" type="checkbox" value="1" /> 置顶
                                <input id="Checkbox1" type="checkbox" value="1" /> 红字
                            </td>
                        </tr>
                    <tr>
                        <td style="width: 64px;">&nbsp;节点状态：</td>
                        <td>
                            <input id="1" type="radio" checked="checked" /> 正常
                            <input id="9" type="radio" /> 停止
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
    <div id="Title"></div>
    <div id="DateTimeCreate"></div>
    <script type="text/javascript">
        (function ($) {
            window.xbase.closeDialog('#btnClose', '#dialog1');
            window.xbase.openDialog('#btnHelp', '#dialog2', '/Html/Acc/Staff/HelpListForm.html', '系统帮助');
        })(jQuery);
    </script>
    <script type="text/javascript">
        $(function () {
            // $("#account").bankInput({min:16,max:25,deimiter,' '});
            // $("#Account").bankInput();
            // $("#Account").bankList();
            // $.ajax({
            //     url: '/Ashx/Acc/Staff/NewsAdminNodeView.ashx?id=' + window.xbase.getDataGridItem('#datagrid1') + '&url=' + window.location.pathname + '&rnd=' + Math.random(),
            //     data: '',
            //     method: 'POST',
            //     success: function (result) {
            //         var json = window.xbase.json(result);
            //         // $('#Title').html(json.Title);
            //         // $('#Content').html(json.Content);
            //         // $('#DateTimes').html(window.xbase.FormatDateTime(json.DateTimes));
            //     },
            // });
            //if ($('#Action').val() == 'ActEdit') {
            $.ajax({
                type: 'GET',
                url: '/Ashx/Acc/Staff/NewsAdminNodeView.ashx?id=' + window.xbase.getDataGridItem('#datagrid1') + '&url=' + window.location.pathname + '&rnd=' + Math.random(),
                data: '',
                success: function (result) {
                    var json = window.xbase.json(result);
                    $('#ff_NodeView').form('load', json);
                },
            });
            // $('#DateTimes').datebox({
            //     // formatter: function (date) { return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate(); },
            //     // parser: function (date) { return new Date(Date.parse(date.replace(/-/g, "/"))); }
            // });
            //}
        });
    </script>
</body>
</html>
